package com.hyk.commonLib.common.utils.eventHandler;

import android.app.Activity;

import com.hyk.commonLib.common.activity.BaseActivity;
import com.hyk.commonLib.common.utils.viewModel.BaseObservableModel;

import org.jetbrains.annotations.NotNull;

public class ActivityEventHandler<ACTIVITY extends Activity, MODEL extends BaseObservableModel> extends BaseEventHandler<ACTIVITY, MODEL> {
    public ActivityEventHandler(@NotNull ACTIVITY activity, MODEL model) {
        super(activity, model);
    }

    @Override
    public BaseActivity<?> getActivity() {
        return (BaseActivity<?>) getContainer();
    }
}
